Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Buffer::apply_ops infallible #18089

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

maxdeviant
Copy link
Member

This PR makes the Buffer::apply_ops method infallible for text::Buffer and language::Buffer.

We discovered that text::Buffer::apply_ops was only fallible due to apply_undo, which didn't actually need to be fallible.

Release Notes:

  • N/A

@maxdeviant maxdeviant self-assigned this Sep 19, 2024
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Sep 19, 2024
@maxdeviant maxdeviant merged commit 1fc391f into main Sep 19, 2024
9 checks passed
@maxdeviant maxdeviant deleted the marshall/make-buffer-apply-ops-infallible branch September 19, 2024 17:14
noaccOS pushed a commit to noaccOS/zed that referenced this pull request Oct 19, 2024
This PR makes the `Buffer::apply_ops` method infallible for
`text::Buffer` and `language::Buffer`.

We discovered that `text::Buffer::apply_ops` was only fallible due to
`apply_undo`, which didn't actually need to be fallible.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant